package com.zareal.ymcc.feign;

import com.zareal.ymcc.fallback.CourseUserLearnByUserIdFeignClientFallbackFactory;
import com.zareal.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(contextId = "service-course-user-learn",value = "service-course",fallbackFactory = CourseUserLearnByUserIdFeignClientFallbackFactory.class)
public interface CourseUserLearnByUserIdFeignClient {
    /**
     * 获取购买信息
     */
    @RequestMapping(value = "/courseUserLearn/{courseId}/{loginId}",method = RequestMethod.GET)
    JSONResult selectByCourseIdAndLoginId(@PathVariable("courseId")Long courseId, @PathVariable("loginId")Long loginId);
}
